package letsjava.socket;

import java.io.*;
import java.net.*;
import java.util.*;

public class SocketServerMultiThread {
	public static void main(String[] args) throws IOException{
		ServerSocket serverSocket = new ServerSocket(8199);
		
		while(true){
			Socket incoming = serverSocket.accept();
			Runnable r = new SocketThread(incoming);
			
			Thread t = new Thread(r);
			
			t.start();
			System.out.print("starting one thread");
		}
		
		
		
		
		
	}
}
